#ifndef _CMD_H
#define _CMD_H

#include <stdint.h>
#include <stdlib.h>


typedef void (*CmdHandler)(uint8_t* context, size_t size);


typedef struct{
	char* cmd;	
	uint8_t* context;
	size_t   size;
	CmdHandler  handler;
}Cmd;


int RegisterCmd(char* cmd, CmdHandler handler);



#endif

